import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
      menuList:[]
  },
  getters: {
  },
  mutations: {
    // 初始化菜单权限
     initMenu(state,payload){
        state.menuList = payload
     },
    // 清空菜单权限
    clearMenu(state){
      state.menuList = []
    }
  },
  actions: {
  },
  modules: {
  }
})
